package cn.yunhe.biz;

import java.util.List;

import cn.yunhe.dao.ICateDao;
import cn.yunhe.dao.impl.CateDaoImpl;
import cn.yunhe.entity.Cate;

public class CateBiz {
	ICateDao cateDao = new CateDaoImpl();

	public boolean addCate(Cate cate) {
		return cateDao.addCate(cate);
	}

	public List<Cate> getAllCate() {
		return cateDao.getAllCate();
	}

	public boolean deleteCateById(int cateId) {
		return cateDao.deleteCateById(cateId);
	}

	public Cate getCateById(int cateId) {
		return cateDao.getCateById(cateId);
	}

	public boolean updateCate(Cate cate) {
		return cateDao.updateCate(cate);
	}

}
